{{extend "config_layout.html"}}

{{block menu}}
{{menu('config')}}
{{end}}

{{block sub_menu}}
{{sub_menu(menu_items, 'resource_admin', 'team')}}
{{end}}


{{block content_main}}
{{use "jquery", css_only=True}}
<div class="content">
    <div class="box col_12 center">
        <h2>团队信息查看</h2>
        <div class="box-body">
            {{embed view}}
            <div style="padding:5px;">
            {{if (has_role(request.user,'kfzx_gm') and request.user._kfzx_==object._kfzx_) or request.user.is_superuser:}}
            <a href="/resource/teams/{{=object.id}}/edit">编辑</a>
            <a href="/resource/teams/{{=object.id}}/delete" onclick="return confirm('确定要删除当前记录吗？');">删除</a>
            {{pass}}
            </div>
        </div>
    </div>
</div>
{{end}}
